namespace Digitalmes.Application.Mes;

/// <summary>
/// 设备点检单表
/// </summary>
public sealed class EquipCheckDocDto : Dto
{
    /// <summary>
    /// 点检单据号
    /// </summary>
    [Required, NotNull]
    [StringLength(32)]
    public string? Doc { get; set; }

    /// <summary>
    /// 设备Id
    /// </summary>
    public long EquipId { get; set; }

    /// <summary>
    /// 设备编号
    /// </summary>
    public string? EquipCode { get; set; }

    /// <summary>
    /// 设备名称
    /// </summary>
    public string? EquipName { get; set; }

    /// <summary>
    /// 点检时间
    /// </summary>
    public DateTime? CheckTime { get; set; }

    /// <summary>
    /// 点检状态（1->已创建; 2->已完成）
    /// </summary>
    public int Status { get; set; }

    /// <summary>
    /// 点检明细项
    /// </summary>
    public List<EquipCheckDocLineDto> Items { get; set; } = new();

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreateTime { get; set; }

    /// <summary>
    /// 创建人
    /// </summary>
    public string? CreateUser { get; set; }

    /// <summary>
    /// 修改时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }

    /// <summary>
    /// 修改人
    /// </summary>
    public string? UpdateUser { get; set; }
}
